package com.project.restaurant.common.exception;

import com.project.restaurant.common.api.StateCode;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ServiceException extends RuntimeException{
    private StateCode errorCode;
    private Exception e;

    public ServiceException(StateCode errorCode){
        this.errorCode = errorCode;
        this.e = new RuntimeException();
    }

}
